Problem Note 47090: ODS TAGSETS.RTF does not honor the STARTPAGE=NOW option when used in an ODS TEXT= statement to generate a page break before procedure output
ODS TAGSETS.RTF does not honor the STARTPAGE=NOW option in some situations. A program that successfully used the STARTPAGE=NOW option in SAS® 9.2 to create two pages of output might create only one page of output in SAS® 9.3. This is most likely to occur if you are writing the output to the ODS TAGSETS.RTF destination and the STARTPAGE=NOW option is used in an ODS TEXT= statement to generate a page break before any procedure output.
To circumvent the problem, create the page break by producing procedure output with one observation and concealing the output. Please see the sample code on the Full Code tab for an illustration.
Operating System and Release Information
SAS System | Base SAS | DB2 Universal Database on AIX | 9.3 TS1M0 | 9.4 TS1M0 |
Aster Data nCluster on Linux x64 | 9.3 TS1M0 | 9.4 TS1M0 |
DB2 Universal Database on Linux x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Greenplum on Linux x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Netezza TwinFin 32bit blade | 9.3 TS1M0 | 9.4 TS1M0 |
Netezza TwinFin 32-bit SMP Hosts | 9.3 TS1M0 | 9.4 TS1M0 |
Netezza TwinFin 64-bit S-Blades | 9.3 TS1M0 | 9.4 TS1M0 |
Netezza TwinFin 64-bit SMP Hosts | 9.3 TS1M0 | 9.4 TS1M0 |
Teradata on Linux | 9.3 TS1M0 | 9.4 TS1M0 |
z/OS | 9.3 TS1M0 | 9.4 TS1M0 |
Z64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.3 TS1M0 | 9.4 TS1M0 |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
Windows 7 Enterprise x64 | 9.3 TS1M0 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
Windows 7 Home Premium x64 | 9.3 TS1M0 | |
Windows 7 Professional 32 bit | 9.3 TS1M0 | |
Windows 7 Professional x64 | 9.3 TS1M0 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | 9.4 TS1M0 |
Windows Vista for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M0 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M0 |
Linux | 9.3 TS1M0 | 9.4 TS1M0 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
Solaris for x64 | 9.3 TS1M0 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
ODS TAGSETS.RTF does not honor the STARTPAGE=NOW option when used in an ODS TEXT= statement to generate a page break before procedure output in SAS 9.3.
The sample code below illustrates a circumvention for this problem by creating the desired page break with procedure output for a single observation in the data set. Style attributes are applied to the table to conceal it.
options nodate nonumber;
ods tagsets.rtf file="c:\tables93.doc" ;
ods escapechar="^";
title " ";
ods text="^{style [font_size=24pt] Analyzed using SAS &sysver}";
ods text="^{style [font_size=24pt] Operating System: &SYSSCP (&SYSSCPL)}";
ods text="^{style [font_size=24pt] Date: &sysdate}";
/* Workaround in SAS 9.3 */
proc report data=sashelp.class(obs=1) nowd noheader
style(report)={rules=none frame=void}
style(column)={foreground=white};
run;
/* ods tagsets.rtf startpage=now; */
title j=l "Table 1.";
title2 " ";
proc report data=sashelp.shoes spanrows nowd split="\"
style (header)={textalign=center verticalalign=center
borderbottomstyle=double borderbottomwidth=0.75};
column ("Title Page" returns,n);
define returns / display order=data center "" style(column)=[width=26% verticalalign=center];
define n / center "" style(column)=[width=13% verticalalign=center];
run;
ods text="^S={fontsize=12pt fontweight=light} ^n Note: This should be the second page";
ods tagsets.rtf close;
ODS TAGSETS.RTF does not honor the STARTPAGE=NOW option in some situations in SAS® 9.3.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-08-09 15:35:16 |
Date Created: | 2012-07-30 11:22:31 |